<#assign ctx=request.contextPath/>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>商品列表</title>
		<link rel="stylesheet" href="${ctx}/css/common.css" />
		<link rel="stylesheet" href="${ctx}/css/shop_list.css" />
		<script type="text/javascript" src="${ctx}/js/jquery.min.js"></script>
		<script type="text/javascript" src="${ctx}/js/common.js"></script>
	</head>
	<body>
		<!--头部-->
		<div class="header">
		<#include "common/top.html">
		</div>
		<!--内容-->
		<div class="middle">
			<div class="box">
				<#include "common/select.html">
				<ul class="conditions">
					<li><a href="javascript:void(0)">综合排榜</a></li>
					<li><a href="javascript:void(0)">销量</a></li>
					<li>
						<a href="javascript:void(0)">价格</a>
						<form>
							<input type="text" />
							<label></label>
							<input type="text" />
						</form>
					</li>
				</ul>
				<ol class="pro_list">
					<#list shops as shop>
						<li>
						<input type="hidden" name="shopId" value="${shop.id}">
							<a href="${ctx}/customer/shop/toPro_details?did=${shop.id}"><img src="${ctx}/img/upload/${shop.image}" alt="" /></a>
							<h6><a href="${ctx}/customer/shop/toPro_details?did=${shop.id}">${shop.description}</a></h6>
							<span class="price">¥<i>${shop.price}</i></span>
							<span class="purchase"><a href="${ctx}/customer/buy/toConfirmOrder?did=${shop.id}">点击购买</a></span>
							<p>
								<span class="quantity">销售量 199</span>
								<span class="stock">库存 ${shop.storage}件</span>
							</p>
						</li>
					</#list>
				</ol>
		

			</div>
		</div>
		<!-- 引入分页标签 -->
		<#if pageModel.recordCount gt 0 >
		    <#import "/common/pager.html" as page>
		    <@page.pager pageIndex=pageModel.pageIndex pageSize=pageModel.pageSize recordCount=pageModel.recordCount toURL="${ctx}/customer/shops/toShopList"/>
		</#if>
		<!--尾部-->
		<#include "common/bottom.html">
		<script type="text/javascript" src="js/shop_list.js" ></script>
		<script type="text/javascript" src="js/page.js" ></script>
	</body>

</html>